<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<sfa:mainTitle></sfa:mainTitle>
		<%@ include file="/common/meta.jsp"%>


		<style type="text/css">
* {
	margin: 0;
	padding: 0;
}

.tc_box {
	width: 400px;
	height: 200px;
	border: 2px solid red;
	position: absolute;
	z-index: 2000;
	background: #FFC;
	display: none;
}

.sp_box {
	width: 100%;
	position: absolute;
	z-index: 1000;
	background: #000;
	top: 0;
	left: 0;
	display: none;
}
.main .formdiv {
	width: 400px;
}
</style>


	</head>



	<body id="master">
<script type="text/javascript">
function verify(id){
	var meetingStatus = $("#"+id).attr("meetingStatus");
	var data = {
		meetingStatus:meetingStatus,
		saleMeetingId:id
	}
	$.ajax({
		url:'${path}/manage/meetings/index/verify',
		dataType:'json',
		data:data,
		success:function(result){
			if(result.returnStatus == 'y'){
				$("#"+id).html('<span>取消审核</span>');
				$("#"+id).attr("meetingStatus",'APPLYSTATUS_3');
				$("#"+id+"_001").html('<span>通过审核</span>');
			}else{
				$("#"+id).html('<span>审核</span>');
				$("#"+id).attr("meetingStatus",'APPLYSTATUS_4');
				$("#"+id+"_001").html('<span>未通过审核</span>');
			}
		}
	});
}
</script>
		<sfa:mainHeader></sfa:mainHeader>
		
		<div class="main" >
				
				<div class="title" style="width: 100%; text-align: center;">
					<h1>${saleMeeting.meetingTitle}</h1>
			
				</div>
				<div class="content" style="text-indent:2em;">
				${saleMeeting.meetingContent}
				</div>
				<p></p>
				主持人：${saleMeeting.masterName}<br/>
				早会开始时间：<fmt:formatDate value="${saleMeeting.startDate}" pattern="yyyy-MM-dd HH:mm:ss" /> <br/>
				早会结束时间：<fmt:formatDate value="${saleMeeting.endDate}" pattern="yyyy-MM-dd HH:mm:ss" /><br/>
				创建时间：<fmt:formatDate value="${saleMeeting.createDate}" pattern="yyyy-MM-dd HH:mm:ss" /><br/>
				参会人数：${saleMeeting.meetingCount}<br/>
				
				资源：<br/>
				<c:forEach  items="${affixList}" var="affixItem">
					<table>	
					<tr>			
					<td>		
				<a href="${path }/affix/index/download/${affixItem.SALEAFFIXITEMID}">${affixItem.SALEAFFIXITEMFILENAME}</a>
				</td>
				</tr>
				</table>
				</c:forEach> 
				
				
				<div class="verify" style="width: 100%; text-align: center;">
					<c:set value="${saleMeeting.meetingStatus}" var="meetingStatus"></c:set>
									
									<c:if test="${meetingStatus != 'APPLYSTATUS_3'}">
										<a onclick = "verify('${saleMeeting.saleMeetingId}')" href="#" meetingStatus="${saleMeeting.meetingStatus}" id="${saleMeeting.saleMeetingId}"><span>审核</span></a>
									</c:if>
									<c:if test="${meetingStatus == 'APPLYSTATUS_3'}">
										<a onclick = "verify('${saleMeeting.saleMeetingId}')" href="#" meetingStatus="${saleMeeting.meetingStatus}" id="${saleMeeting.saleMeetingId}"><span>取消审核</span></a>
									</c:if>
				</div>
			
		</div>
		<sfa:mainFooter></sfa:mainFooter>
		
		
		
	</body>
</html>


